<?php
namespace app\admin\behavior;
class DefineConstants {
    public function run(&$params){

        $dispatch = $params->dispatch()['module'];
        define('MODULE_NAME',$dispatch[0]);
        define('CONTROLLER_NAME',$dispatch[1]);
        define('ACTION_NAME',$dispatch[2]);
    }
}
?>
